[Help] Pretty printing 2D output - wxMaxima-developers/wxmaxima GitHub Wiki

The function table_form() displays a 2D list in a form that is more readable than the output from Maxima’s default output routine. The input is a list of one or more lists. Like the print() command, this command displays output even when ended with a dollar sign. Ending the command with a semicolon results in the same table along with a done statement.

Example 1

table_form(
    [
        [1,2],
        [3,4]
    ]
)$

Example 2

As the next example shows, the lists that are assembled by the table_form() command can be created before the command is executed.

A table example

Example 3

Also, because a matrix is a list of lists, matrices can be converted to tables in a similar fashion.

A matrice example